/**
 * @author Isabella Nake (isabella.nake@usi.ch)
 * @author Nicolas Lusa (lusan@usi.ch)
 */
package ch.usi.inf.pf2.circuit;

public class InputPinForOutput extends InputPin {
	private static final long serialVersionUID = -1143315485360794663L;
	private final Output output;
	
	public InputPinForOutput(final Output output) {
		this.output = output;
	}
	
	//MODEL PART
	
	@Override
	public void setValue(final Value value) {
		this.value = value;
		output.printValue(this.value);
	}
	
	public void removeInputPin() {
		output.removeInputPin();
	}
	
	
}
